package com.youlai.boot.system.converter;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.bo.LinkBO;
import com.youlai.boot.system.model.entity.Link;
import com.youlai.boot.system.model.form.LinkForm;
import com.youlai.boot.system.model.vo.LinkPageVO;
import org.mapstruct.Mapper;

/**
 * 部门对象转换器
 *
 * @author haoxr
 * @since 2022/7/29
 */
@Mapper(componentModel = "spring")
public interface LinkConverter {
    LinkForm toForm(Link entity);
    Page<LinkPageVO> toPageVo(Page<LinkBO> page);
    Link toEntity(LinkForm LinkForm);

}